<?php 
use Yii\helpers\Html;
use yii\helpers\Url;
use backend\components\SideNavWidget;
?>
<div class="col-md-2">
    <!--
    <div class="list-group">
        <a class="list-group-item active" href="<?= Url::to(['order/index']) ?>">课程订单</a>
    </div>
    -->

    <?php
    //左侧菜单3
    $menuItem = [];
    if ($access = Yii::$app->params['access']) {
        isset($access['ORDER']['INDEX']) && $menuItem[] = ['label' => '课程订单', 'url' => ['order/index']];
    } else {
        $menuItem = [
            ['label' => '课程订单', 'url' => ['order/index']],
        ];
    }

    echo SideNavWidget::widget([
        'options' => ['class' => 'list-group'],
        'items' => $menuItem,
    ]);
    
    ?>
</div>
